﻿using System;

namespace ConsoleApplication1 {
    class Program {
        private static ConsoleHandler ch;
        private static Player p;
        private static Map map;
        private static Story s;
       
        //Start of the program
        static void Main(String[] args) {
            ch = new ConsoleHandler("red", "black");
            p = new Player();
            map = new Map(ch);
            s = new Story(ch, p, map);
            startGame();
        }

        /*
         * Dingen die darina niet snapt
         * - 
         */

        private static void startGame() {
            Boolean stop = false;
            for (; ; ) {
                s.tellStory("menu");

                int menu = ch.readInt(1, 3);
                Console.Clear();
                switch (menu) {
                    case 1:
                        s.tellStory("prologue_intro");
                        map.Walk();
                        break;
                    case 2:
                        s.tellStory("about");
                        s.tellStory("presskey_clearscreen");
                        break;
                    case 3:
                        s.tellStory("quit");
                        s.tellStory("presskey_clearscreen");
                        stop = true;
                        break;
                }

                if (stop) {
                    break;
                }
                ch.clearScreen();
            }
        }
    }
}
